﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp9
{
    class AgeSort:IComparer<Student>
    {
        public int Compare(Student a,Student b)
        {
            if (a.Age>b.Age)
            {
                return 1;
            }
            return -1;
        }
    }
}
